package com.andnnl.expr;

/**
 * Created by chenss on 2022/2/15.
 */
public class ExprTest {
    public static void main(String[] args) {
        String s = "3*(4+5)-63/(1+2)";
        InToPost inToPost = new InToPost(s);
        System.out.println("---------------------");
        String trans = inToPost.doTrans();
        System.out.println(trans);
        System.out.println("---------------------");
        ParsePost parsePost = new ParsePost(trans);
        int output = parsePost.doParse();
        System.out.println(output);
    }
}
